﻿using QFramework;
using System;

namespace ProjectIndieFarm
{
    [Serializable]
    public class Item
    {
        public string Name { get; set; }
        public string IconName { get; set; }

        public bool Countable { get; set; }

        public ITool Tool { get; set; }

        public bool IsPlant { get; set; }
        public string PlantPrefabName { get; set; }

        public Item Copy()
        {
            var item = new Item
            {
                Name = Name,
                IconName = IconName,
                Countable = Countable,
                Tool = Tool,
                IsPlant = IsPlant,
                PlantPrefabName = PlantPrefabName,
            };

            return item;
        }
    }
}
